<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<div id="content" class="col-lg-10 col-sm-10">
    <!-- content starts -->
    <div>
        <ul class="breadcrumb">
            <li>
                <a href="#">Home</a>
            </li>
            <li>
                <a href="#">View TimeTable for Faculty</a>
            </li>
        </ul>
    </div>



    <div class="row">
        <div class="box col-md-12">
            <div class="box-inner">
                <div class="box-header well" data-original-title="">
                    <h2>Time Table for : 

                    </h2>

                    <div class="box-icon">

                    </div>
                </div>
                <div class="box-content">
                    <table class="table">
                        <thead>
                            <tr>
                                <th>Days</th>
                                    <c:forEach var="day" items="${sessionScope.days}" varStatus="i">
                                    <th>
                                        <c:if test="${i.count eq 1}">
                                            Monday
                                        </c:if>
                                        <c:if test="${i.count eq 2}">
                                            Tuesday
                                        </c:if>
                                        <c:if test="${i.count eq 3}">
                                            Wednesday
                                        </c:if>
                                        <c:if test="${i.count eq 4}">
                                            Thursday
                                        </c:if>
                                        <c:if test="${i.count eq 5}">
                                            Friday
                                        </c:if>
                                        <c:if test="${i.count eq 6}">
                                            Saturday
                                        </c:if>
                                    </th>                                  
                                </c:forEach>

                            </tr>
                        </thead>
                        <tbody>
                                <c:forEach begin="1" end="${sessionScope.parameters.lecturesperday}" var="i">
                                    <tr>
                                        <td>${i}</td>
                                        <c:forEach var="day" items="${sessionScope.days}">


                                            <td class="center">
                                                <c:if test="${day.get(i-1) ne null}"> 
                                                    ${day.get(i-1).division.name}                                            
                                                    <br>                      
                                                    ${day.get(i-1).subject.name}
                                                </c:if>


                                            </td>
                                        </c:forEach>
                                    </tr>
                                </c:forEach>
                           
                        </tbody>
                    </table>



                </div>
            </div>
        </div>
        <!--/span-->


        <!--/span-->
    </div>

</div>
